package zheng;

public class 数组 {
	public static void main(String[] args) {
		int[][] arr={{0,1,2},{3,4,5},{6,7,8},{9,10,11}};
		int[][] arr2=new int[3][4];//{{0  },{1   },{2   }}
		
		
		for(int i=0;i<arr.length;i++){
			for(int j=0;j<arr[i].length;j++){
				//数组下标
				arr2[j][i]=arr[i][j];
			}
		}
		
		for(int i=0;i<arr2.length;i++){
			for(int j=0;j<arr2[i].length;j++){
				System.out.print(arr2[i][j]+"\t");
			}
			System.out.println();
		}
	}
}
